<!-- 系统自动生成 Date:2021-06-11 10:29 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="【请填写功能名称】列表" bodyClass="gray-bg animated fadeInRight" isAnimation=false libs=["table","zTree","layout-latest"]/>
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <@f.form id="sku-form" class="form-inline">
                <div class="select-list">
                    <ul>
                        <li>
                            <label> <@ctx.i18n text = "accountPeriod"/>：</label>
                            <@f.input placeholder="accountPeriod" name="accountPeriod"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "addTime"/>：</label>
                            <@f.input placeholder="addTime" name="addTime"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "deleted"/>：</label>
                            <@f.input placeholder="deleted" name="deleted"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "images"/>：</label>
                            <@f.input placeholder="images" name="images"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "imgsCover"/>：</label>
                            <@f.input placeholder="imgsCover" name="imgsCover"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "isDeliver"/>：</label>
                            <@f.input placeholder="isDeliver" name="isDeliver"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "isGiftPack"/>：</label>
                            <@f.input placeholder="isGiftPack" name="isGiftPack"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "isNational"/>：</label>
                            <@f.input placeholder="isNational" name="isNational"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "isPickUp"/>：</label>
                            <@f.input placeholder="isPickUp" name="isPickUp"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "itemStock"/>：</label>
                            <@f.input placeholder="itemStock" name="itemStock"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "mengniuPay"/>：</label>
                            <@f.input placeholder="mengniuPay" name="mengniuPay"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "minQuantity"/>：</label>
                            <@f.input placeholder="minQuantity" name="minQuantity"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "offSaleReason"/>：</label>
                            <@f.input placeholder="offSaleReason" name="offSaleReason"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "offSaleStatus"/>： </label>
                            <select name="offSaleStatus">
                            <option value="">所有</option>
                            </select>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "offlinePay"/>：</label>
                            <@f.input placeholder="offlinePay" name="offlinePay"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "oldPrice"/>：</label>
                            <@f.input placeholder="oldPrice" name="oldPrice"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "price"/>：</label>
                            <@f.input placeholder="price" name="price"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "priceLabel"/>：</label>
                            <@f.input placeholder="priceLabel" name="priceLabel"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "priceSystem"/>：</label>
                            <@f.input placeholder="priceSystem" name="priceSystem"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "settlementPrice"/>：</label>
                            <@f.input placeholder="settlementPrice" name="settlementPrice"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "skuStatus"/>： </label>
                            <select name="skuStatus">
                            <option value="">所有</option>
                            </select>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "spuId"/>：</label>
                            <@f.input placeholder="spuId" name="spuId"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "stockCountMode"/>：</label>
                            <@f.input placeholder="stockCountMode" name="stockCountMode"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "typeCode"/>：</label>
                            <@f.input placeholder="typeCode" name="typeCode"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "unit"/>：</label>
                            <@f.input placeholder="unit" name="unit"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "version"/>：</label>
                            <@f.input placeholder="version" name="version"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "detailUrl"/>：</label>
                            <@f.input placeholder="detailUrl" name="detailUrl"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "skuComments"/>：</label>
                            <@f.input placeholder="skuComments" name="skuComments"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "skuSales"/>：</label>
                            <@f.input placeholder="skuSales" name="skuSales"/>
                        </li>
                        <li>
                            <label> <@ctx.i18n text = "skuVisits"/>：</label>
                            <@f.input placeholder="skuVisits" name="skuVisits"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;&nbsp;<@ctx.i18n text = "查询"/></a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="opt.form.reset()"><i class="fa fa-refresh"></i>&nbsp;<@ctx.i18n text = "重置"/></a>
                        </li>
                    </ul>
                </div>
            </@f.form>
        </div>
        <@table id="bootstrap-table">
            <@shiro.hasPermission name=":sku:add">
                <a class="btn btn-success" onclick=" opt.operate.add()"><i class="fa fa-plus"></i>&nbsp;<@ctx.i18n text = "新增"/></a>
            </@shiro.hasPermission>
            <@shiro.hasPermission name=":sku:edit">
                <a class="btn btn-primary single disabled" onclick=" opt.operate.edit()"><i class="fa fa-pencil-square-o"></i>&nbsp;<@ctx.i18n text = "修改"/></a>
            </@shiro.hasPermission>
            <@shiro.hasPermission name=":sku:del">
                <a class="btn btn-danger multiple disabled" onclick="opt.operate.delAll()"><i class="fa fa-remove"></i> <@ctx.i18n text = "删除"/></a>
            </@shiro.hasPermission>
        </@table>
    </div>
</div>
<@footer>
<script type="text/javascript">
    var editFlag = "${permission.hasPermi(":sku:edit")}";
    var listFlag = "${permission.hasPermi(":sku:add")}";
    var delFlag = "${permission.hasPermi(":sku:del")}";
    var visible = ${permission.isPermitteds(":sku:edit,:sku:del,:sku:add")?string('true', 'false')};
    var prefix = baseURL + "/sku";

    $(function() {
        var options = {
            url: prefix + "/list",
            addUrl: prefix + "/add",
            editUrl: prefix + "/edit/{id}",
            delUrl: prefix + "/del",
            modalName: "【请填写功能名称】",
            uniqueId:  'pkId',/* 唯一ID */
            escape: true,/* 分页设置 */
            showPageGo: true,/* 分页设置 */
            pageSize: 10,/* 分页设置 */
            pageList: [10, 30, 50],/* 分页设置 */
            columns:[
                {title: $.i18n.prop("序号"), width: 5, align: "center", formatter: function (value, row, index) {
                    return $.table.serialNumber(index);
                }}
                ,{field : 'pkId',title : '<@ctx.i18n text = "pkId"/>',visible: false}
                ,{field : 'accountPeriod',title : '<@ctx.i18n text = "accountPeriod"/>'}
                ,{field : 'addTime',title : '<@ctx.i18n text = "addTime"/>'}
                ,{field : 'collected',title : '<@ctx.i18n text = "collected"/>'}
                ,{field : 'deleted',title : '<@ctx.i18n text = "deleted"/>'}
                ,{field : 'images',title : '<@ctx.i18n text = "images"/>'}
                ,{field : 'imgsCover',title : '<@ctx.i18n text = "imgsCover"/>'}
                ,{field : 'isDeliver',title : '<@ctx.i18n text = "isDeliver"/>'}
                ,{field : 'isGiftPack',title : '<@ctx.i18n text = "isGiftPack"/>'}
                ,{field : 'isNational',title : '<@ctx.i18n text = "isNational"/>'}
                ,{field : 'isPickUp',title : '<@ctx.i18n text = "isPickUp"/>'}
                ,{field : 'itemStock',title : '<@ctx.i18n text = "itemStock"/>'}
                ,{field : 'mengniuPay',title : '<@ctx.i18n text = "mengniuPay"/>'}
                ,{field : 'minQuantity',title : '<@ctx.i18n text = "minQuantity"/>'}
                ,{field : 'offSaleReason',title : '<@ctx.i18n text = "offSaleReason"/>'}
                ,{field : 'offSaleStatus',title : '<@ctx.i18n text = "offSaleStatus"/>'}
                ,{field : 'offlinePay',title : '<@ctx.i18n text = "offlinePay"/>'}
                ,{field : 'oldPrice',title : '<@ctx.i18n text = "oldPrice"/>'}
                ,{field : 'price',title : '<@ctx.i18n text = "price"/>'}
                ,{field : 'priceLabel',title : '<@ctx.i18n text = "priceLabel"/>'}
                ,{field : 'priceSystem',title : '<@ctx.i18n text = "priceSystem"/>'}
                ,{field : 'settlementPrice',title : '<@ctx.i18n text = "settlementPrice"/>'}
                ,{field : 'skuStatus',title : '<@ctx.i18n text = "skuStatus"/>'}
                ,{field : 'spuId',title : '<@ctx.i18n text = "spuId"/>'}
                ,{field : 'stockCountMode',title : '<@ctx.i18n text = "stockCountMode"/>'}
                ,{field : 'typeCode',title : '<@ctx.i18n text = "typeCode"/>'}
                ,{field : 'unit',title : '<@ctx.i18n text = "unit"/>'}
                ,{field : 'version',title : '<@ctx.i18n text = "version"/>'}
                ,{field : 'detailUrl',title : '<@ctx.i18n text = "detailUrl"/>'}
                ,{field : 'skuComments',title : '<@ctx.i18n text = "skuComments"/>'}
                ,{field : 'skuSales',title : '<@ctx.i18n text = "skuSales"/>'}
                ,{field : 'skuVisits',title : '<@ctx.i18n text = "skuVisits"/>'}
                ,{field : 'remark',title : '<@ctx.i18n text = "remark"/>'}
                ,{title:"<@ctx.i18n text = "操作"/>",align: 'center',visible:visible,formatter: function(value, row, index) {
                    var actions = [];
                    actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick=" opt.operate.edit(\'' + row.pkId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                    actions.push('<a class="btn btn-danger btn-xs ' + delFlag + '" href="javascript:void(0)" onclick="opt.operate.del(\'' + row.pkId + '\')"><i class="fa fa-remove"></i>删除</a>');
                    return actions.join('');
                }}
            ]
        };
        $.table.init(options);
    });
</script>
</@footer>
</@pageTheme>